import { createRouter, createWebHistory } from "vue-router";
import Home from "../views/home/index.vue";

export const constantRoutes = [
  {
    path: "/",
    name: "Home",
    component: Home,
  },
  {
    path: "/list",
    name: "List",
    component: () => import("../views/list/index.vue"),
  },
  {
    path: "/task-edit",
    name: "TaskEdit",
    component: () => import("../views/task-edit/index.vue"),
  },
  {
    path: "/detection-edit",
    name: "DetectionEdit",
    component: () => import("../views/detection-edit/index.vue"),
  },
  // {
  //   path: "/process-report",
  //   name: "processReport",
  //   component: () => import("../views/process-report/index.vue")
  // },
  // {
  //   path: "/process-report/details/:id",
  //   name: "processReportDetail",
  //   component: () => import("../views/process-report/details.vue"),
  // },
  // {
  //   path: "/production-forecast-sheet",
  //   name: "productionForecastSheet",
  //   component: () => import("../views/production-forecast-sheet/index.vue")
  // },
  // {
  //   path: "/production-forecast-sheet/details/:id",
  //   name: "productionForecastSheetDetail",
  //   component: () => import("../views/production-forecast-sheet/details.vue")
  // },
  // {
  //   path: "/inspection-sheet",
  //   name: "inspectionSheet",
  //   component: () => import("../views/inspection-sheet/index.vue")
  // },
  // {
  //   path: "/inspection-sheet/details/:id",
  //   name: "inspectionSheetDetail",
  //   component: () => import("../views/inspection-sheet/details.vue")
  // },
  // {
  //   path: "/process-transfer",
  //   name: "processTransfer",
  //   component: () => import("../views/process-transfer/index.vue")
  // },
  // {
  //   path: "/process-transfer/details/:id",
  //   name: "processTransferDetail",
  //   component: () => import("../views/process-transfer/details.vue")
  // },
];
const router = createRouter({
  history: createWebHistory("/"),
  routes: constantRoutes,
});

export default router;
